package com.wdh.kjs.activity;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import android.widget.TextView;

import com.wdh.kjs.R;
import com.wdh.kjs.model.PlatformInfoForAppHtml;
import com.wdh.kjs.model.QuestionListForApp;

public class KefuAnswerQuestionActivity extends BaseTopActivity {
    private WebView mwebview;
    private TextView tv_answer_describe;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_kefu_answer_question);
        initView();
    }
    private void initView(){
        initTopBar("服务中心");
        tv_answer_describe=(TextView)findViewById(R.id.kefu_answer_describe_textview);
        tv_answer_describe.setText(QuestionListForApp.staticTitle);
        mwebview=(WebView) findViewById(R.id.kefu_answer_webview);
        String htmlstr= QuestionListForApp.staticAnswer;
        mwebview.loadDataWithBaseURL(null, htmlstr, "text/html", "utf-8", null);
        mwebview.getSettings().setJavaScriptEnabled(true);
        mwebview.setWebChromeClient(new WebChromeClient());
    }
}
